iris.Screen(
	function (self) {
	
		var _BtnExample
		,	_BtnGoto
		,	_UIExample
		,	_$Msg
		,	_Hidden
		,	_ShowBtn
		;
		
		self.Create = function () {
			self.Template("example/screen/main.html");
			
			_BtnExample = self.InstanceUI( "ui_btn_example", "example/ui/btn.js", { "onClick" : _Alert } );
			_BtnGoto = self.InstanceUI( "ui_btn_goto", "example/ui/btn.js", { "onClick" : _Goto } );
			
			_ShowBtn = self.InstanceUI( "btn_show_hide", "example/ui/btn.js", { "onClick" : _ShowOrHide }  );
			
			_$Msg = self.$Get("msg");
			
			_UIExample = self.InstanceUI( "ui_example_one", "example/ui/ui_example.js", { "text" : "This is the ONE button" } );

			
			iris.screen.Add( $(document.body), "example", "example/screen/example.js" );
			
			_Inflate();
		}
		
		function _ShowOrHide () {
			_Hidden = !_Hidden;
			if ( _Hidden ) {
				_UIExample.Hide();
			}
			else {
				_UIExample.Show();
			}
		}
		
		function _Inflate () {
			_$Msg.text("Main screen");
		}
		
		function _Goto () {
			iris.screen.Goto("example")
		}
		
		function _Alert () {
			alert( iris.lang.Get("APP_NAME") );
		}
		
	}
);
